package com.stone.bean.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author stone
 * @date 2022/4/22 16:22
 */
@Data
public class MenuAddDTO {

    @NotNull(message = "名称不能为空")
    @ApiModelProperty(value = "名称", required = true)
    private String name;

    @ApiModelProperty(value = "父节点id")
    private Long parentId = 0L;

    @ApiModelProperty(value = "排序")
    private int orderNum = 0;

    @ApiModelProperty(value = "菜单链接")
    private String url;

    @NotNull(message = "菜单资源类型不能为空")
    @ApiModelProperty(value = "类型（1-目录 2-菜单 3-按钮）", required = true)
    private Integer type = 1;

    @ApiModelProperty(value = "菜单图标")
    private String icon;

    @ApiModelProperty(value = "备注")
    private String remark;

    private String token;

}
